import sortedcontainers
class SORTracker(object):

    def __init__(self):
        self.st = sortedcontainers.SortedList()
        self.index = 0

    def add(self, name, score):
        """
        :type name: str
        :type score: int
        :rtype: None
        """
        self.st.add([- score, name])


    def get(self):
        """
        :rtype: str
        """
        out_val = self.st[self.index][1]
        self.index += 1
        return out_val
